import {mapGetters, mapActions} from 'vuex'
import {ANIMATION_TIME} from "@/util/misc"

export const transitionMixin = {
  methods: {
    ...mapActions([]),
    onMaskTap(cb) {
      cb && cb()
    }
  },
  computed: {
    ...mapGetters([])
  },
  data() {
    return {
      animationTime: ANIMATION_TIME,

      maskShow: false,
      maskClass: { // 使用时请根据情况指定zIndex
        'position': 'fixed',
        'bottom': 0,
        'top': 0,
        'left': 0,
        'right': 0,
        'backgroundColor': 'rgba(0, 0, 0, 0.4)'
      },
    }
  },
  mounted() {

  }
}
